package paperless.start;

import paperless.join.JoinPage1;

import com.example.paperless.R;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.widget.ImageButton;

public class FadeIn extends Activity {
	private static final String TAG = "MainActivity";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE); // no Titlebar

		setContentView(R.layout.fadein_layout);
		ImageButton btn = (ImageButton)findViewById(R.id.logo);
	
		Handler handler = new Handler(){
			@Override
			public void handleMessage(Message msg) {
			
				finish();
				overridePendingTransition(R.anim.fade, R.anim.hold);
			}
		};
		handler.sendEmptyMessageDelayed(0, 1500);
	}
	@Override
	public void onBackPressed() {
		// TODO Auto-generated method stub
	
	}
		
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
